﻿using System;
using System.Collections.Generic;

namespace IBNet.LongTermTrade
{
   /// <summary>
   /// Represents a LongTermTrade.exe trade request.
   /// </summary>
   class TradeRequest
   {
      private readonly string _symbol;
      private readonly ActionSide _actionSide;

      /// <summary>
      /// Creates a new TradeRequest for a specified symbol with a specified action side.
      /// </summary>
      /// <param name="symbol">The symbol the trade request is for.</param>
      /// <param name="actionSide">The action side (Buy or Sell).</param>
      public TradeRequest(string symbol, ActionSide actionSide)
      {
         _symbol = symbol;
         _actionSide = actionSide;
      }

      /// <summary>
      /// Gets the symbol the TradeRequest is for.
      /// </summary>
      public string Symbol { get { return _symbol; } }

      /// <summary>
      /// Gets the ActionSide of the TradeRequest.
      /// </summary>
      public ActionSide ActionSide { get { return _actionSide; } }
   }
}
